macos: fix coordinates and state when querying device
authorChristian Hergert <chergert@redhat.com>
Wed, 14 Oct 2020 18:32:20 +0000 (11:32 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 14 Oct 2020 18:34:44 +0000 (11:34 -0700)
commit9f01d4fe4405cfed733528d9765cd0ff8c9f56e1
tree8c791ef574e1a26509089897db69597fe20f9f24
parentd5b5410b8f319af0db50ef62136f7da38090808d
macos: fix coordinates and state when querying device

When querying a device, we need to ensure we are providing coordinates
in the coordinate system of the surface. Further, we need to actually
provide the button and keyboard state.

This fixes some issues related to dragging scrollbars and selecting list
box rows more reliably.
gdk/macos/gdkmacossurface.c